li = [54, 26, 93, 17, 77, 31, 44, 55, 20]
for i in range(len(li)-1):
    for j in range(i + 1, 0, -1):
        if li[j] < li[j - 1]:
            li[j - 1], li[j] = li[j], li[j - 1]
        else:
            break
print(li)
